﻿using CYZHAPI.Common.Config;
using CYZHAPI.Common.DB;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace CYZHAPI.Common.DB
{
    public class DapperContext : IDapperContext
    {
        private WebApiOption m_Config;
        
        public  DapperContext(WebApiOption config )
        {
            m_Config = config;
           
        }
        
        public string GetConnectionString()
        {
            return m_Config.DB.ConnectionString;
        }
    }
}